﻿using ChangeProblem.Logic;
using System;
using System.Collections.Generic;
using System.Text;
using Xunit;

namespace ChangeProblem.Test
{
    public class ChangeProblemTest1
    {
        ChangeProblem1 Test = new ChangeProblem1();
        [Fact]
        public void changeProblem()
        {
            decimal[] nominalvalue = new decimal[7]
            {
                50,20,10,5,1,(decimal)0.5,(decimal)0.1
             };
            int[] except = new int[]
             {
                 0,1,0,1,1,1,1
             };
            int[] ChangePlan = Test.GetChange(Test.ChangeAmount(123.4, 150), nominalvalue);
            Assert.Equal(except, ChangePlan);

        }

    }
}
